package com.mizhiquan.pojo;

import java.util.Date;

public class PhoneCode {
    private String code;

    private String phone;

    private Date time;

    private Integer timeout;

    private Boolean used;

    private String userId;

    public PhoneCode(String code, String phone, Date time, Integer timeout, Boolean used,String userId) {
        this.code = code;
        this.phone = phone;
        this.time = time;
        this.timeout = timeout;
        this.used = used;
        this.userId = userId;
    }

    public PhoneCode() {
        super();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Boolean getUsed() {
        return used;
    }

    public void setUsed(Boolean used) {
        this.used = used;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}